#include <iostream>
#include "Parent.h"

using namespace std;

class PriChild : private Parent{

public:

    PriChild(int pri, int pub, int pro) : Parent(pri, pub, pro) {}

public:

    int addParameter(){
        return this->getPri() + this->pro + this->pub;
    }

};

class ProChild : protected Parent{

public:

    ProChild(int pri, int pub, int pro) : Parent(pri, pub, pro) {}
    int addParameter(){
        return this->getPri() + this->pro + this->pub;
    }

};


class PubChild : public Parent{

public:

    PubChild(int pri, int pub, int pro) : Parent(pri, pub, pro) {}
    int addParameter(){
        return this->getPri() + this->pro + this->pub;
    }

};

int main() {

    PriChild c(1,2,3);

    cout << c.addParameter();



    return 0;
}